Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CP-22444: CloudZero KSM (Feature Branch) #102

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

bdrennz
Copy link
Contributor

@bdrennz bdrennz commented Nov 14, 2024

This PR contains all the CloudZero KSM changes:

Testing:

  • validate that KSM metrics are sent [x]
  • validate that the configmap contains the correct endpoint [x]

Beta Release Request:

Checklist

  • I have added documentation for new/changed functionality in this PR
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

… subchart (#91)

* override KSM name

* enable ksm by default

* make cloudzero ksm undiscoverable

* improve documentation

* option 2 is not the default behavior

* fix indentation

* add line

* add documentation for changing the service port for cloudzero ksm

* disable cloudzero KSM as scrape target

* set default port

* fix endpoint

* use default port

* add release notes

* remove metric exporter documentation

* change beta version
@josephbarnett
Copy link
Contributor

You want to have this as a PR going to the cloudzero-ksm branch - that is the beta release branch for this feature

@bdrennz
Copy link
Contributor Author

bdrennz commented Nov 14, 2024

You want to have this as a PR going to the cloudzero-ksm branch - that is the beta release branch for this feature

This is just a placeholder PR for when we eventually merge the changes. That's why it's a "Draft".

* change kube-state-metrics value name to avoid template errors

* define static target

* fix kube-state-metrics dependency

* remove unused documentation

* cast port to int

* fix endpoint

* update scrape config

* dynamicaly populate metrics

* use camel case
@bdrennz bdrennz marked this pull request as ready for review November 18, 2024 17:41
@bdrennz bdrennz requested a review from a team as a code owner November 18, 2024 17:41
Copy link
Collaborator

@dmepham dmepham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! sorry, I missed one of the other reviews, and just have a couple questions just for my own understanding

@@ -45,7 +45,7 @@ helm install <RELEASE_NAME> cloudzero-beta/cloudzero-agent \
--set clusterName=<CLUSTER_NAME> \
--set-string cloudAccountId=<CLOUD_ACCOUNT_ID> \
--set region=<REGION> \
--set kube-state-metrics.enabled=<true|false> \
--set kube_state_metrics.enabled=<true|false> \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to remove this? I would think that we wouldn't want to show this option now?

@@ -47,10 +47,18 @@ prometheusConfig:
# -- Any items added to this list will be added to the Prometheus scrape configuration.
additionalScrapeJobs: []

kube-state-metrics:
enabled: false
kubeStateMetrics:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this work if alias is not set in the dependencies section? I would have thought that would need to be set. but maybe I'm just not up to date

follow_redirects: true
enable_http2: true
- separator: ;
regex: ^(board_asset_tag|container|created_by_kind|created_by_name|image|instance|name|namespace|node|node_kubernetes_io_instance_type|pod|product_name|provider_id|resource|unit|uid|_.*|label_.*|app.kubernetes.io/*|k8s.*)$
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be a good idea to remove the named template that this is replacing if we're not going to use it. I do like this change though, it's more readable for sure

@dmepham
Copy link
Collaborator

dmepham commented Nov 18, 2024

also, do you think we should remove this line: https://github.com/Cloudzero/cloudzero-charts/pull/102/files#diff-0217cc97d5b1d9cfdc746b1dcd2d4b88c04fb243e7099a15dc5aaea8d138145eR17 ?

just because we're not advertising ksm anymore?

@dmepham dmepham mentioned this pull request Nov 20, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants